import Vue from 'vue'
import App from './App.vue'
import router from './router'

import ElementUI from 'element-ui';

import  'element-ui/lib/theme-chalk/index.css'
//导入axios
import axios from 'axios'
//挂载axios
Vue.prototype.$http = axios
//设置访问根路径
axios.defaults.baseURL='http://localhost:8083/'

// axios.defaults.baseURL = '/api'  //关键代码
Vue.config.productionTip = false

Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
